package d0324;

import java.lang.reflect.Array;
import java.util.Arrays;

public class TestSort {
    public static void main(String[] args) {
        Product p1 = new Product("巧克力",45.5,2);
        Product p2 = new Product("教材",30,5);
        Product p3=  new Product("衣服",145.5,3);
        Product p4 = new Product("手机",3445.5,2);
        Product[] products = new Product[]{p1,p2,p3,p4};
        for(Product prod : products){
            System.out.println(prod);
        }
    }
}
